#ifndef DATAMANAGER_H
#define DATAMANAGER_H

#include <QSqlDatabase>
#include <QSqlQuery>
#include <QString>
#include <QVariantMap>

class DataManager
{
public:
    DataManager();
    bool initialize(QString driver, QString host, QString dbName, QString uName, QString pass, int port);
    void setQuery(QString query);

    QString getNext();
    bool next();

    bool prepareQuery(QString query);
    bool execQuery();

private:
    QSqlDatabase m_db;
    QSqlQuery m_query;
};

#endif // DATAMANAGER_H
